import numpy as np

x = np.arange(6).reshape(3,2)
print(x)
'''
[[0 1]
 [2 3]
 [4 5]]
'''

# 1.transpose 转化 行,列
a = x.transpose()
print(a)
'''
[[0 2 4]
 [1 3 5]]
'''

# 2. T转化 行,列
b = x.T
print(b)
'''
[[0 2 4]
 [1 3 5]]
'''